package com.yykj.order.center.client.feign;

import com.yykj.order.center.client.fallback.OrderFallbackFactory;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "order-center-server", fallbackFactory = OrderFallbackFactory.class)
public interface OrderCenterFeignClient {

    @GetMapping("/proto/consultation/countByDoctor")
    @ApiOperation(value = "获取医生会诊数量")
    int countByDoctor(@RequestParam(name = "doctorId") String doctorId,
                             @RequestParam(name = "startTime") int startTime,
                             @RequestParam(name = "endTime") int endTime);
}
